﻿using System;
using System.Collections.Generic;

namespace TimeCard.Core
{
    /// <summary>
    /// 考勤数据模型
    /// </summary>
    public class TimeCard
    {
        /// <summary>
        /// 年
        /// </summary>
        public int Year { get; set; }

        /// <summary>
        /// 月
        /// </summary>
        public int Month { get; set; }

        /// <summary>
        /// 用户打卡原始集合
        /// </summary>
        public List<UserRecord> UserRecordList { get; set; }

        /// <summary>
        /// 本月天集合,格式(MM-dd)
        /// </summary>
        public List<string> DayList { get; set; }

        /// <summary>
        /// 用户列表
        /// </summary>
        public List<User> UserList { get; set; }

        /// <summary>
        /// 用户记录Map集合,Key = 姓名+天(MM-dd)
        /// </summary>
        public Dictionary<string,List<DateTime>> UserRecordDic { get; set; }

        /// <summary>
        /// 用户规则Map集合,Key = 姓名+天(MM-dd)
        /// </summary>
        public Dictionary<string,UserRule> UserRuleDic { get; set; }

        /// <summary>
        /// 用户结果Map集合,Key = 姓名+天(MM-dd)
        /// </summary>
        public Dictionary<string, UserResult> UserResultDic { get; set; }

        /// <summary>
        /// 分析报告
        /// </summary>
        public string Report { get; set; }
    }
}